import java.util.ArrayList;

public class SuperDemo11 {
    public static void main(String[] args) {
        ChinesePerson chinesePerson = new ChinesePerson("老张");
        System.out.println(chinesePerson.getName());


        ChinesePerson chinesePerson1 = new ChinesePerson();
        System.out.println(chinesePerson1.getName());
    }
}

class Person extends Object {
    private String name;

    public Person() {
        super();
    }

    public Person(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}

class ChinesePerson extends Person {
    public ChinesePerson() {
        super("老赵");// 调用父类的构造方法
        System.out.println("dsad");
    }

    public ChinesePerson(String name) {
        super(name);// 调用父类的有参构造方法
    }
}
